package www.wen.com.common.lib.data.entities


import androidx.annotation.Keep

@Keep
data class ProtocolEntity(
    val content: List<Content>,
    val empty: Boolean, // false
    val first: Boolean, // true
    val last: Boolean, // true
    val number: Int, // 0
    val numberOfElements: Int, // 1
    val pageable: Pageable,
    val size: Int, // 20
    val sort: Sort,
    val totalElements: Int, // 1
    val totalPages: Int // 1
) {
    @Keep
    data class Content(
        val content: String, // null/202109/20210928101817_542216.jpeg
        val createTime: String, // 2021-09-12T11:11:12.000+0800
        val enableStatus: Boolean, // true
        val id: Int, // 13
        val name: String, // 邀请海报
        val sort: Int, // 0
        val systemBuiltin: Boolean, // true
        val type: String, // 邀请海报
        val updateTime: String, // 2021-09-28T10:18:21.000+0800
        var shareUrl: String ?= null
    )

    @Keep
    data class Pageable(
        val offset: Int, // 0
        val pageNumber: Int, // 0
        val pageSize: Int, // 20
        val paged: Boolean, // true
        val sort: Sort,
        val unpaged: Boolean // false
    ) {
        @Keep
        data class Sort(
            val empty: Boolean, // true
            val sorted: Boolean, // false
            val unsorted: Boolean // true
        )
    }

    @Keep
    data class Sort(
        val empty: Boolean, // true
        val sorted: Boolean, // false
        val unsorted: Boolean // true
    )
}